package ${data.packageName}.${data.objectName?uncap_first}.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import ${data.packageName}.${data.objectName?uncap_first}.entity.${data.objectName?cap_first};
import ${data.packageName}.${data.objectName?uncap_first}.service.${data.objectName?cap_first}Service;

@Controller
@RequestMapping("/${data.objectName?uncap_first}")
public class ${data.objectName?cap_first}Controller {

    private static final Logger LOGGER = Logger.getLogger(${data.objectName?cap_first}Controller.class);

    @Autowired
    private ${data.objectName?cap_first}Service ${data.objectName?uncap_first}Service;

    @RequestMapping("info")
    public String info(HttpServletRequest request, Model model) {

        return "${data.objectName?uncap_first}/info";
    }

}
